<template>
    <div style="border:1px solid #ccc;margin:1em;padding:1em">
        孙子组件 {{money}}, {{car}}
    </div>
</template>
<script>
import { inject } from 'vue'
export default {
    setup () {
        const money = inject('money')
        const car = inject('car')
        return {money, car}
    }
}
</script>